package com.tinem.platform.client.network;

import com.tinem.platform.module.pojo.vo.translate.TranslateReq;
import com.tinem.platform.module.pojo.vo.translate.TranslateRes;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: platform
 * @description: ${description}
 * @author: eden#can
 * @Slogan: 没有所谓失败，除非你不再尝试
 * @date: 2022-01-02 16:00
 **/
@FeignClient(value = "platform-cloud-service-network",contextId = "platform-cloud-service-network.translateClient")
public interface TranslateClient {

    @PostMapping("/trans/translate.api")
    @ApiOperation(value = "获取翻译结果", httpMethod = "POST", notes = "暂无")
    @ResponseBody
    TranslateRes info(@RequestBody TranslateReq req);
}
